package com.lagou.tomcat.http;

public enum HttpStatusEnum {
    SUCCESS(200, "HTTP/1.1 200 OK \n" +
            "Content-Type: text/html \n" +
            "Content-Length: ${length}\n\r\n"),
    NOT_FOUND(404, "HTTP/1.1 200 OK \n" +
            "Content-Type: text/html \n" +
            "Content-Length: ${length}\n\r\n");

    HttpStatusEnum(int code, String responseHand) {
        this.code = code;
        this.responseHand = responseHand;
    }

    private int code;

    private String responseHand;


    public int getCode() {
        return code;
    }

    public String getResponseHand() {
        return responseHand;
    }

}
